import {baseRequest} from '@/utils/request'

const request = (url, ...arg) => baseRequest(`/hwOperator/hwoperatorteam/` + url, ...arg)

/**
 * 车队Api接口管理器
 *
 * @author lizhiwen
 * @date  2023/09/20 17:41
 **/
export default {
	// 获取车队分页
	hwOperatorTeamPage(data) {
		return request('page', data, 'get')
	},
	// 获取车队列表
	hwOperatorTeamList(data) {
		return request('list', data, 'get')
	},
	// 提交车队表单 edit为true时为编辑，默认为新增
	hwOperatorTeamSubmitForm(data, edit = false) {
		return request(edit ? 'edit' : 'add', data)
	},
	// 删除车队
	hwOperatorTeamDelete(data) {
		return request('delete', data)
	},
	// 获取车队详情
	hwOperatorTeamDetail(data) {
		return request('detail', data, 'get')
	}
}
